<%--
  Created by IntelliJ IDEA.
  User: maTengLong
  Date: 2020/3/12
  Time: 0:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    //第一次登录判断
    if(request.getAttribute("error") != null){
%>
<%--显示错误提示--%>
<h1><%=request.getAttribute("error")%><br></h1>
<%
    }
%>

<%
    //提示姓名信息
    String userName=request.getParameter("userName");
    //第一次登录判断
    if(userName == null){
        userName="";
    }
%>
<form action="do_login.jsp">
    <input type="text" name="userName" placeholder="请输入账号" value="<%=userName%>"><br>
    <input type="password" name="pwd" placeholder="请输入密码"><br>
    <input type="radio" name="gender" value="男">男
    <input type="radio" name="gender" value="女">女
    <br>
    <input type="datetime-local" placeholder="出生日期" name="bornday">
    <input type="submit" value="登录">
</form>
</body>
</html>
